import articleApi from './article/article.api.js'
import userApi from './user/user.api.js'
import accessApi from './access/access.api.js'
import commentApi from './comment/comment.api.js'
import versionApi from './version/version.api.js'
import messageApi from './message/message.api.js'
const install = (Vue, vm) => {
	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	vm.$u.api = Object.assign({},
		articleApi(vm),
		userApi(vm),
		accessApi(vm),
		commentApi(vm),
		versionApi(vm),
		messageApi(vm)
	);
}

export default {
	install
}
